/**
 * @Author: 陈瑞鹏
 * @Date:   2022-10-17 14:43:44
 * @Last Modified by:   陈瑞鹏
 * @Last Modified time: 2022-10-17 14:44:04
 */
import mongoose from 'mongoose';

const Schema = mongoose.Schema;
const SkillSchema: mongoose.Schema = new Schema({
    roleId: { type: Number, desc: '角色Id', index: true },
    id: { type: Number, desc: '技能ID' },
    name: { type: String, desc: '技能名称' },
    level: { type: Number, desc: '技能等级', default: 1 },
}, { versionKey: false }).index({ roleId: 1, id: 1 });

const Skill = mongoose.model('Skill', SkillSchema);
export default Skill;